home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / nt4.0 server / DRVLIB.NIC / HPVGE / OEMSETUP.INF < prev   
INI File  |  1996-07-31  |  24KB  |  615 lines

  1. [Identification]
  2.     OptionType = NetAdapter
  3. [PlatformsSupported]
  4.     EISA
  5.         "Jazz-Internal Bus"
  6. [LanguagesSupported]
  7.     ENG
  8. [Options]
  9.     J2577A
  10. [OptionsTextENG]
  11.     J2577A       = "HP DeskDirect (J2577A) 10/100 EISA LAN Adapter"
  12. [FileConstants]
  13. UtilityInf      = "UTILITY.INF"
  14. subroutineinf   = "SUBROUTN.INF"
  15. SoftwareType    = "driver"
  16. Exit_Code       = 0
  17. NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
  18. IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"
  19. J2577A_COMPRESSID = 1699874
  20. J2577A_1BYTE      = 1075441698
  21. J2577A_MASK       = 4043309055
  22. Manufacturer    = "Hewlett-Packard"
  23. ProductMajorVersion     = "3"
  24. ProductMinorVersion     = "0"
  25. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  26. ProductSoftwareName     = "Hpddnd3"
  27. ProductSoftwareTitle    = "HP DeskDirect 10/100 LAN Driver"
  28. ProductSoftwareImagePath = "\SystemRoot\System32\drivers\hpddnd3.sys"
  29. NetRuleSoftwareType     = "hpddnd3Sys ndisDriver hpddnd3Driver"
  30. NetRuleSoftwareUse      = $(SoftwareType)
  31. NetRuleSoftwareBindForm = """Hpddnd3Sys"" yes no container"
  32. NetRuleSoftwareClass    = {"hpddnd3Driver basic"}
  33. NetRuleSoftwareBindable = {"hpddnd3Driver hpddnd3Adapter non exclusive 100"}
  34. ProductHardwareName     = "Hpddnd3"
  35. ProductHardwareJ2577ATitle    = "HP J2577A"
  36. NetRuleHardwareType     = "hpddnd3 hpddnd3Adapter"
  37. NetRuleHardwareBindForm = " yes yes container"
  38. NetRuleHardwareClass    = {"hpddnd3Adapter basic"}
  39. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  40. ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  41. [GeneralConstants]
  42. from      = ""
  43. to        = ""
  44. ExitCodeOk     = 0
  45. ExitCodeCancel = 1
  46. ExitCodeFatal  = 2
  47. KeyNull         = ""
  48. MAXIMUM_ALLOWED   = 33554432
  49. RegistryErrorIndex = NO_ERROR
  50. KeyProduct      = ""
  51. KeyParameters   = ""
  52. TRUE            = 1
  53. FALSE           = 0
  54. NoTitle            = 0
  55. ExitState   = "Active"
  56. OldVersionExisted = $(FALSE)
  57. DriverPath      = $(!STF_NTPATH)\drivers
  58. [FileConstantsENG]
  59. ProCaption   = "Windows NT Setup"
  60. ProCancel    = "Cancel"
  61. ProCancelMsg = "Windows NT Networking is not correctly installed.  "+
  62.                "Are you sure you want to cancel copying files?"
  63. ProCancelCap = "Network Setup Message"
  64. ProText1     = "Copying:"
  65. ProText2     = "To:"
  66. FunctionTitle   = "HP DeskDirect (J2577A) LAN Adapter Setup"
  67. J2577AFunctionTitle   = "HP DeskDirect (J2577A) LAN Adapter Setup"
  68. ProductSoftwareJ2577ADescription      = "HP DeskDirect 10/100 LAN Adapter Driver"
  69. ProductHardwareJ2577ADescription      = "HP DeskDirect (J2577A) 10/100 EISA LAN Adapter"
  70. CANNOT_FIND_ANY_CARD            = "Network card is not present in the system"
  71. [DialogConstantsENG]
  72. Help        = "&Help"
  73. Exit        = "Cancel"
  74. OK          = "OK"
  75. HelpContext = ""
  76. Continue    = "Continue"
  77. Cancel      = "Cancel"
  78. [date]
  79.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  80. [FileDependentDlgENG]
  81. [Identify]
  82.     read-syms Identification
  83.     set Status     = STATUS_SUCCESSFUL
  84.     set Identifier = $(OptionType)
  85.     set Media      = #("Source Media Descriptions", 1, 1)
  86.     Return $(Status) $(Identifier) $(Media)
  87. [ReturnOptions]
  88.     set Status        = STATUS_FAILED
  89.     set OptionList     = {}
  90.     set OptionTextList = {}
  91.     set LanguageList = ^(LanguagesSupported, 1)
  92.     Ifcontains(i) $($0) in $(LanguageList)
  93.         ifstr(i) $($1) == ""
  94.            goto returnoptions
  95.         endif
  96.         set PlatformList = ^(PlatformsSupported, 1)
  97.         Ifcontains(i) $($1) in $(PlatformList)
  98.            goto returnoptions
  99.         else
  100.            set Status = STATUS_NOTSUPPORTED
  101.            goto finish_ReturnOptions
  102.         endif
  103.     else
  104.         set Status = STATUS_NOLANGUAGE
  105.         goto finish_ReturnOptions
  106.     endif
  107. returnoptions = +
  108.     set OptionList     = ^(Options, 1)
  109.     set OptionTextList = ^(OptionsText$($0), 1)
  110.     set Status         = STATUS_SUCCESSFUL
  111. finish_ReturnOptions = +
  112.     Return $(Status) $(OptionList) $(OptionTextList)
  113. [InstallOption]
  114.     set Option   = $($1)
  115.     set SrcDir   = $($2)
  116.     set AddCopy  = $($3)
  117.     set DoCopy   = $($4)
  118.     set DoConfig = $($5)
  119.     set LanguageList = ^(LanguagesSupported, 1)
  120.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  121.         Return STATUS_NOLANGUAGE
  122.     endif
  123.     Debug-Output "OEMSETUP.INF: STF_CWDIR is: "$(!STF_CWDIR)
  124.     Debug-Output "OEMSETUP.INF: STF_LANGUAGE is: "$(!STF_LANGUAGE)
  125.     set-subst LF = "\n"
  126.     read-syms GeneralConstants
  127.     read-syms FileConstants
  128.     read-syms DialogConstants$(!STF_LANGUAGE)
  129.     ifstr(i) $(!NTN_Origination) == "NCPA"
  130.         set Continue = "OK"
  131.     endif
  132.     read-syms FileConstants$(!STF_LANGUAGE)
  133.     detect date
  134.     set-title  $($(Option)FunctionTitle)
  135.     set to   = Begin
  136.     set from = Begin
  137.     set CommonStatus = STATUS_SUCCESSFUL
  138.     EndWait
  139. Begin = +
  140.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  141.         set StartLabel = removeadapter
  142.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  143.         set StartLabel = UpgradeSoftware
  144.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  145.         set StartLabel = bindingadapter
  146.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  147.         set CommonStatus = STATUS_REBOOT
  148.         Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  149.             Debug-Output "Cannot configure the HP 27248 driver software."
  150.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  151.         else
  152.             Debug-Output "Cannot configure the HP 27248 adapter card."
  153.             Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_HARDWARE
  154.         endif
  155.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  156.             Debug-Output "ShellCode error: cannot get an error string."
  157.             goto ShellCodeError
  158.         endif
  159.         set Error = $($R0)
  160.         set from = end
  161.         set to = end
  162.         goto nonfatalinfo
  163.     else
  164.         set StartLabel = installadapter
  165.         set OEM_ABANDON_OPTIONS = {}
  166.         set OEM_ABANDON_SOFTWARE = FALSE
  167.         set OEM_ABANDON_ON = TRUE
  168.     endif
  169.     set from = $(fatal)
  170.     set to = $(fatal)
  171.     goto $(StartLabel)
  172. installadapter = +
  173.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  174.     Ifstr $(KeyProduct) != $(KeyNull)
  175.         CloseRegKey $(KeyProduct)
  176.         ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
  177.            Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  178.                $(ProductVersion)
  179.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  180.                Debug-Output "ShellCode error: cannot get an error string."
  181.                goto ShellCodeError
  182.            endif
  183.            goto end
  184.         else
  185.            Shell $(UtilityInf), CardExistedDlg
  186.            ifint $($ShellCode) != $(!SHELL_CODE_OK)
  187.                Debug-Output "ShellCode error: cannot get an error string."
  188.                goto ShellCodeError
  189.            endif
  190.            ifstr(i) $($R1) != "OK"
  191.                set CommonStatus = STATUS_USERCANCEL
  192.                goto end
  193.            endif
  194.            set OldVersionExisted = $(TRUE)
  195.         endif
  196.     endif
  197.     CloseRegKey $(KeyProduct)
  198.     goto nextstep
  199. configureadapter = +
  200.     set Error = "Configure: Sorry, not yet implemented."
  201.     goto fatal
  202. nextstep = +
  203.     StartWait
  204.     Shell $(UtilityInf), EISAFindBus, $($(Option)_1BYTE), $($(Option)_MASK)
  205.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  206.         goto ShellCodeError
  207.     endif
  208.     ifstr $($R0) != "NO_ERROR"
  209.         set Error = $($R0)
  210.         goto fatal
  211.     endif
  212.     ifstr(i) $($R1) == {}
  213.         set Error = $(CANNOT_FIND_ANY_CARD)
  214.         set CommonStatus = STATUS_USERCANCEL
  215.         set from = "end"
  216.         goto nonfatal
  217.     endif
  218.     set AdapterList = $($R1)
  219.     ifint $(OldVersionExisted) == $(FALSE)
  220.         ifstr(i) $(!NTN_InstallMode) == "install"
  221.            Ifstr(i) $(DoCopy) == "YES"
  222.               Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) NO
  223.               Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  224.                   Goto ShellCodeError
  225.               Else-Ifstr(i) $($R0) == STATUS_FAILED
  226.                   Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  227.                   ifint $($ShellCode) != $(!SHELL_CODE_OK)
  228.                       goto ShellCodeError
  229.                   endif
  230.                   set Error = $($R0)
  231.                   Goto fatal
  232.               Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  233.                   Goto successful
  234.               Endif
  235.               Set SrcDir = $($R1)
  236.            Endif
  237.            install "Install-Option"
  238.            ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  239.               Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  240.               ifint $($ShellCode) != $(!SHELL_CODE_OK)
  241.                   goto ShellCodeError
  242.               endif
  243.               set Error = $($R0)
  244.               goto fatal
  245.            endif
  246.         endif
  247.         Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  248.             $(ProductSoftwareName), +
  249.             $(ProductSoftwareName), +
  250.             $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
  251.             $(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
  252.             $(NetEventDLL)
  253.         Set OEM_ABANDON_SOFTWARE = TRUE
  254.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  255.             goto ShellCodeError
  256.         endif
  257.         set RegistryErrorIndex = $($R0)
  258.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  259.             EndWait
  260.             CloseRegKey $($R1)
  261.             CloseRegKey $($R2)
  262.             CloseRegKey $($R3)
  263.             CloseRegKey $($R4)
  264.             CloseRegKey $($R5)
  265.             goto fatalregistry
  266.         endif
  267.         set SoftProductKey      = $($R1)
  268.         Set SoftNetRuleKey      = $($R2)
  269.         Set SoftServiceKey      = $($R3)
  270.         Set SoftParameterKey    = $($R4)
  271.         Set SoftLinkageKey      = $($R5)
  272.         set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  273.                            {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  274.                            {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  275.                            {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  276.                            {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  277.                            {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  278.                            {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  279.         Shell  $(UtilityInf), AddValueList, $(SoftProductKey), $(NewValueList)
  280.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  281.             goto ShellCodeError
  282.         endif
  283.         set RegistryErrorIndex = $($R0)
  284.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  285.             EndWait
  286.             CloseRegKey $(SoftProductKey)
  287.             CloseRegKey $(SoftNetRuleKey)
  288.             CloseRegKey $(SoftServiceKey)
  289.             CloseRegKey $(SoftParameterKey)
  290.             CloseRegKey $(SoftLinkageKey)
  291.             goto fatalregistry
  292.         endif
  293.         set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  294.                             {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  295.                             {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  296.                             {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  297.                             {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  298.                             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  299.         Shell  $(UtilityInf), AddValueList, $(SoftNetRuleKey), $(NewValueList)
  300.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  301.             goto ShellCodeError
  302.         endif
  303.         set RegistryErrorIndex = $($R0)
  304.         CloseRegKey $(SoftProductKey)
  305.         CloseRegKey $(SoftNetRuleKey)
  306.         CloseRegKey $(SoftServiceKey)
  307.         CloseRegKey $(SoftParameterKey)
  308.         CloseRegKey $(SoftLinkageKey)
  309.         Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  310.             EndWait
  311.             goto fatalregistry
  312.         endif
  313.     endif
  314.     ForListDo $(AdapterList)
  315.         set BusNum = *($($),1)
  316.         set SlotNum = *($($),2)
  317.         Debug-Output $(BusNum)
  318.         Debug-Output $(SlotNum)
  319.         Shell $(UtilityInf), IsNetCardAlreadyInstalled, $(BusNum), +
  320.             $(SlotNum), $(ProductHardware$(Option)Description), $(ProductHardwareName)
  321.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  322.             goto ShellCodeError
  323.         endif
  324.         ifstr $($R0) != "NO_ERROR"
  325.             set Error = $($R0)
  326.             goto fatal
  327.         endif
  328.         ifstr(i) $($R1) != "YES"
  329.                 Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
  330.                 ifint $($R4) != -1
  331.                     Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  332.                 endif
  333.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  334.                     goto ShellCodeError
  335.                 endif
  336.                 set RegistryErrorIndex = $($R0)
  337.                 Ifstr(i) $(RegistryErrorIndex) != "NO_ERROR"
  338.                     EndWait
  339.                     CloseRegKey $($R1)
  340.                     CloseRegKey $($R2)
  341.                     CloseRegKey $($R3)
  342.                     goto fatalregistry
  343.                 endif
  344.                 Set HardNetCardKey      = $($R1)
  345.                 Set HardNetRuleKey      = $($R2)
  346.                 Set HardParameterKey    = $($R3)
  347.                 set AdapterNumber       = $($R4)
  348.                 set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  349.                                    {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardware$(Option)Title)},+
  350.                                    {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardware$(Option)Description)},+
  351.                                    {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  352.                                    {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  353.                                    {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  354.                 Shell  $(UtilityInf), AddValueList, $(HardNetCardKey), $(NewValueList)
  355.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  356.                     goto ShellCodeError
  357.                 endif
  358. ;                Shell $(UtilityInf), GetBusTypeNum
  359. ;                set BusTypeNum = $($R1)
  360.                 set BusTypeNum = 2
  361.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  362.                     Debug-Output "ShellCode error."
  363.                     goto ShellCodeError
  364.                 endif
  365. ;AdapterType: 0=ISA, 1=EISA, 2=MCA, 3=PCI
  366.                 set NewValueList = {{BusNumber,$(NoTitle),$(!REG_VT_DWORD),$(BusNum)},+
  367.                                    {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
  368.                                    {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
  369.                                    {EisaCompressedId,$(NoTitle),$(!REG_VT_DWORD),$($(Option)_COMPRESSID)},+
  370.                                    {AdapterType,$(NoTitle),$(!REG_VT_DWORD),1},+
  371. ;NOTE: CHANGE, not needed anymore
  372. ;                                   {MemoryMappedBaseAddress,$(NoTitle),$(!REG_VT_DWORD),0},+
  373.                                    {SlotNumber,$(NoTitle),$(!REG_VT_DWORD),$(SlotNum)}}
  374.                 Shell  $(UtilityInf), AddValueList, $(HardParameterKey), $(NewValueList)
  375.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  376.                     goto ShellCodeError
  377.                 endif
  378.                  set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  379.                  set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  380.                  set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  381.                                      {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  382.                                      {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  383.                                      {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  384.                 Shell  $(UtilityInf), AddValueList, $(HardNetRuleKey), $(NewValueList)
  385.                 CloseRegKey $(HardNetCardKey)
  386.                 CloseRegKey $(HardNetRuleKey)
  387.                 CloseRegKey $(HardParameterKey)
  388.                 ifint $($ShellCode) != $(!SHELL_CODE_OK)
  389.                     goto ShellCodeError
  390.                 endif
  391.         endif
  392.     EndForListDo
  393.     goto writeparameters
  394. writeparameters = +
  395.     EndWait
  396.     goto successful
  397. bindingadapter =+
  398.     set Error = "Binding: Sorry, not yet implemented."
  399.     goto fatal
  400. removeadapter = +
  401.     Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  402.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  403.             $(ProductSoftwareName)
  404.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  405.             Debug-Output "ShellCode error"
  406.             goto ShellCodeError
  407.         endif
  408.         set RegistryErrorIndex = $($R0)
  409.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  410.             goto fatalregistry
  411.         endif
  412.     else
  413.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  414.             $(ProductSoftwareName), $(!NTN_RegBase)
  415.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  416.             Debug-Output "ShellCode error"
  417.             goto ShellCodeError
  418.         endif
  419.         set RegistryErrorIndex = $($R0)
  420.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  421.             goto fatalregistry
  422.         endif
  423.     endif
  424.     goto end
  425. UpgradeSoftware = +
  426.     ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  427.         OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  428.         Ifstr $(KeyProduct) != $(KeyNull)
  429.             GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
  430.             set Version = *($(VersionInfo), 4)
  431.             Split-String $(!NTN_Infname), "\", FilenameList
  432.             QueryListSize ListSize $(FilenameList)
  433.             set !UG_Filename = *($(FilenameList), $(ListSize))
  434.             install "Install-Update"
  435.             ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  436.                 goto fatal
  437.             endif
  438.             SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  439.             SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  440.             ifint $(Version) != $(ProductVersion)
  441.             endif
  442.             CloseRegKey $(KeyProduct)
  443.         else
  444.             goto fatalregistry
  445.         endif
  446.     else
  447.         OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) +
  448.               $(MAXIMUM_ALLOWED) NetworkCardKey
  449.         Ifstr(i) $(NetworkCardKey) != $(KeyNull)
  450.             GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo
  451.             set ServiceName = *($(ServiceNameInfo), 4)
  452.             OpenRegKey $(NetworkCardKey) "" "NetRules" +
  453.                 $(MAXIMUM_ALLOWED) NetRuleKey
  454.             Ifstr(i) $(NetRuleKey) != $(KeyNull)
  455.             else
  456.                 goto fatalregistry
  457.             endif
  458.             CloseRegKey $(NetRules)
  459.             CloseRegKey $(NetworkCardKey)
  460.         else
  461.             goto fatalregistry
  462.         endif
  463.         OpenRegKey $(!REG_H_LOCAL) "" +
  464.               $(!NTN_ServiceBase)"\"$(ServiceName) +
  465.               $(MAXIMUM_ALLOWED) ServiceKey
  466.         Ifstr(i) $(ServiceKey) != $(KeyNull)
  467.             CloseRegKey $(ServiceKey)
  468.         else
  469.             goto fatalregistry
  470.         endif
  471.     endif
  472.     goto end
  473. successful = +
  474.     goto end
  475. abandon = +
  476.     ForListDo $(OEM_ABANDON_OPTIONS)
  477.         Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  478.             $(ProductSoftwareName), $($)
  479.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  480.             Debug-Output "ShellCode error"
  481.             goto ShellCodeError
  482.         endif
  483.         set RegistryErrorIndex = $($R0)
  484.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  485.             goto fatalregistry
  486.         endif
  487.     EndForListDo
  488.     Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
  489.         Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  490.             $(ProductSoftwareName), FALSE
  491.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  492.             Debug-Output "ShellCode error"
  493.             goto ShellCodeError
  494.         endif
  495.         set RegistryErrorIndex = $($R0)
  496.         Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  497.             goto fatalregistry
  498.         endif
  499.     endif
  500.     goto end
  501. warning = +
  502.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  503.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  504.         goto ShellCodeError
  505.     endif
  506.     ifstr(i) $($R1) == "OK"
  507.         goto $(to)
  508.     else-ifstr(i) $($R1) == "CANCEL"
  509.         goto $(from)
  510.     else
  511.         goto "end"
  512.     endif
  513. nonfatalinfo = +
  514.     Set CommonStatus = STATUS_USERCANCEL
  515.     Set Severity = STATUS
  516.     goto nonfatalmsg
  517. nonfatal = +
  518.     Set Severity = NONFATAL
  519.     goto nonfatalmsg
  520. nonfatalmsg = +
  521.     ifstr(i) $(Error) == ""
  522.         Set Severity = NONFATAL
  523.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  524.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  525.             goto ShellCodeError
  526.         endif
  527.         set Error = $($R0)
  528.     endif
  529.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  530.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  531.         goto ShellCodeError
  532.     endif
  533.     ifstr(i) $($R1) == "OK"
  534.         goto $(from)
  535.     else
  536.         goto "end"
  537.     endif
  538. fatalregistry = +
  539.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  540.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  541.         goto ShellCodeError
  542.     endif
  543.     set Error = $($R0)
  544.     goto fatal
  545. fatal = +
  546.     ifstr(i) $(Error) == ""
  547.         Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  548.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  549.             goto ShellCodeError
  550.         endif
  551.         set Error = $($R0)
  552.     endif
  553.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  554.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  555.         goto ShellCodeError
  556.     endif
  557.     goto setfailed
  558. ShellCodeError = +
  559.     set DlgType      = "MessageBox"
  560.     set STF_MB_TITLE = "Error: "$(FunctionTitle)
  561.     set STF_MB_TEXT  = "Shell Code Error"
  562.     set STF_MB_TYPE  = 1
  563.     set STF_MB_ICON  = 3
  564.     set STF_MB_DEF   = 1
  565.     ui start "Error Message"
  566.     goto setfailed
  567. setfailed = +
  568.     set CommonStatus = STATUS_FAILED
  569.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  570.         set OEM_ABANDON_ON = FALSE
  571.         goto abandon
  572.     endif
  573.     goto end
  574. end = +
  575.     goto term
  576. term = +
  577.     Return $(CommonStatus)
  578. [Install-Option]
  579.     set STF_VITAL = ""
  580.     ifstr(i) $(AddCopy) == "YES"
  581.         AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  582.     endif
  583.     ifstr(i) $(DoCopy) == "YES"
  584.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  585.        CopyFilesInCopyList
  586.     endif
  587.     ifstr(i) $(DoConfig) == "YES"
  588.     endif
  589.     Exit
  590. [Install-Update]
  591.    set STF_VITAL        = ""
  592.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  593.    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  594.    AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
  595.    set !STF_NCPA_FLUSH_COPYLIST = TRUE
  596.    CopyFilesInCopyList
  597.    exit
  598. [Source Media Descriptions]
  599.     ;1  = "HP DeskDirect 10/100 LAN Driver Support Disk"  , TAGFILE = disk1
  600.     1  = "HP DeskDirect 10/100 LAN Driver Support Disk" 
  601.  
  602. [Signature]
  603.     FileType = MICROSOFT_DRVLIB_FILE
  604. [GetSignature]
  605.     read-syms Signature
  606.     return $(FileType)
  607.  
  608. [ProductType]
  609. STF_PRODUCT  = Winnt
  610. STF_PLATFORM = I386
  611. [Files-Inf]
  612. 1,    oemsetup.inf,     SIZE=32819,    RENAME=$(!UG_Filename)
  613. [Files-J2577A]
  614. 1,hpddnd3.sys , SIZE=53248
  615.